package com.koron.order.workbench.appMenu.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.workbench.appMenu.bean.dto.AppMenuDto;
import com.koron.order.workbench.appMenu.bean.po.AppMenuPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 个人应用菜单表(AppMenu)表服务接口
 *
 * @author zhouj
 * @since 2022-03-18 08:35:25
 */
public interface AppMenuService {

    int insertOrUpdate(SessionFactory factory, AppMenuPo appMenu);

    int insertOrUpdateBatch(SessionFactory factory, List<AppMenuPo> appMenuList);

    int insert(SessionFactory factory, AppMenuPo appMenu);

    int insertBatch(SessionFactory factory, AppMenuDto appMenuDto);

    int update(SessionFactory factory, AppMenuPo appMenu);

    int deleteById(SessionFactory factory, String id);

    int deleteByAppId(SessionFactory factory, String appId,String account);

    AppMenuPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, AppMenuPo appMenu, PageQuery pageQuery);

    List<AppMenuPo> queryList(SessionFactory factory, AppMenuPo appMenu);

}
